package com.zsp.comic.controller.admin;

import com.zsp.comic.service.UserService;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * @author gan
 * @create 2020-12-16 21:57
 */
@Controller
//@RequestMapping("/admin")
public class AdminController {

    @Resource
    private UserService userService;

    @PostMapping("/success")
    public String success(){

//        User admin = userService.getUserByUsernameAndPassword(user.getUsername(), user.getPassword());

        return "success";
    }

//    @GetMapping("/index")
//    public String adminIndex(){
//        return "admin/index.html";
//    }

}
